import request from '@/utils/request'

// 查询查房信息列表
export function listWardrounds(query) {
  return request({
    url: '/wardrounds/wardrounds/list',
    method: 'get',
    params: query
  })
}

// 查询查房信息详细
export function getWardrounds(id) {
  return request({
    url: '/wardrounds/wardrounds/' + id,
    method: 'get'
  })
}

// 新增查房信息
export function addWardrounds(data) {
  return request({
    url: '/wardrounds/wardrounds',
    method: 'post',
    data: data
  })
}

// 修改查房信息
export function updateWardrounds(data) {
  return request({
    url: '/wardrounds/wardrounds',
    method: 'put',
    data: data
  })
}

// 删除查房信息
export function delWardrounds(id) {
  return request({
    url: '/wardrounds/wardrounds/' + id,
    method: 'delete'
  })
}
